package com.bookshop.book.logic;

import java.io.Serializable;
import java.util.Date;

public class Book implements Serializable{
	private static final long serialVersionUID = -1759677519536633321L;
	
	private String id;
	private String name;
	private String ISBN;
	private String author;
	private String category;
	private String press;
	private Date publishDate;
	private double price;
	private String description;
	private int num;
	private byte[] image;

	public Book( String id, String name, String author,String press, String ISBN,
			String catagory, Date publishDate, double price,String description, int num, byte[] image) {
		this.category = catagory;
		this.id = id;
		this.name = name;
		this.ISBN = ISBN;
		this.author = author;
		this.press = press;
		this.publishDate = publishDate;
		this.price = price;
		this.description = description;
		this.num = num;
		this.image=image;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getISBN() {
		return ISBN;
	}

	public void setISBN(String iSBN) {
		ISBN = iSBN;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getPress() {
		return press;
	}

	public void setPress(String press) {
		this.press = press;
	}

	public Date getPublishDate() {
		return publishDate;
	}

	public void setPublishDate(Date publishDate) {
		this.publishDate = publishDate;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getCatagory() {
		return category;
	}

	public void setCatagory(String catagory) {
		this.category = catagory;
	}

	public int getNum() {
		return num;
	}

	public void setNum(int num) {
		this.num = num;
	}
	
	public byte[] getImage(){
		return image;
	}

	public void setImage(byte[] image){
		this.image=image;
	}

}